<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:76:"D:\important\netwws-cms\public/../application/admin\view\template\lists.html";i:1507614517;s:76:"D:\important\netwws-cms\public/../application/admin\view\extends\extend.html";i:1507614517;}*/ ?>
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <!--bootstarp-->
    <link href="__admin__/css/bootstrap.min.css" rel="stylesheet">
    <!-- 图标-->
    <link href="__admin__/css/font-awesome.min.css" rel="stylesheet">
    <!-- animate -->
    <link href="__admin__/css/animate.min.css" rel="stylesheet">
    <!--自定义css-->
    <link href="__admin__/css/style.min.css" rel="stylesheet">
    

</head>
<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>
                            <i class="glyphicon glyphicon-log-out"></i>
                            模板列表
                        </h5>
                        <div class="ibox-tools">
                            <a href="javascript:location.reload(true);" class="btn btn-outline btn-info btn-xs">
                                <i class="fa fa-refresh"></i> 刷新
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <?php if(!(empty($themes) || (($themes instanceof \think\Collection || $themes instanceof \think\Paginator ) && $themes->isEmpty()))): ?>
                            <div class="row">
                                <div class="col-sm-12">

                                    <div class="alert alert-warning">
                                        <h3 style="margin: 0;"><i class="glyphicon glyphicon-tasks"></i> 模板选择:</h3>
                                        <div class="hr-line-dashed" style="margin: 10px 0"></div>
                                        <?php if(is_array($themes) || $themes instanceof \think\Collection || $themes instanceof \think\Paginator): $i = 0; $__LIST__ = $themes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                            <!--<a href="<?php echo url('template/lists',['path'=> urlencode($v['path'])]); ?>" class="btn btn-success btn-sm"><?php echo $v['name']; ?></a>-->
                                            <a href="?path=<?php echo urlencode($v['path']); ?>" class="btn btn-success btn-sm"><?php echo $v['name']; ?></a>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                        <div class="row">
                            <div class="col-sm-12 m-b-xs">
                                <div class="btn-group">


                                </div>
                            </div>
                        </div>

                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>序</th>
                                    <th>名称</th>
                                    <th>路径</th>
                                    <th>可写</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php if(!(empty($files) || (($files instanceof \think\Collection || $files instanceof \think\Paginator ) && $files->isEmpty()))): if(is_array($files) || $files instanceof \think\Collection || $files instanceof \think\Paginator): $i = 0; $__LIST__ = $files;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $v['name']; ?></td>
                                            <td><?php echo $v['sortPath']; ?></td>
                                            <td><?php echo is_writable($v['path'])?'是':'否'; ?></td>
                                            <td><?php echo date('Y-m-d H:i:s',filectime($v['path'])); ?></td>
                                            <td>
                                                <a href="editFile?path=<?php echo urlencode($v['path']); ?>" class="btn btn-warning btn-sm">
                                                    <i class="glyphicon glyphicon-edit"></i> 编辑
                                                </a>
                                            </td>
                                        </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                    <tr>
                                        <td colspan="8" align="center">暂无数据!</td>
                                    </tr>
                                <?php endif; ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

<!-- jquery-->
<script src="__admin__/js/jquery.min.js"></script>
<!-- bootstarp-->
<script src="__admin__/js/bootstrap.min.js"></script>

    <!-- sweetalert js -->
    <script src="__admin__/js/plugins/sweetalert/sweetalert.min.js"></script>


</body>
</html>
